//package com.liuguang.testassert.congfig;
//
//import com.liuguang.testassert.filter.TestFilter3;
//import com.liuguang.testassert.filter.TestFilter4;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.servlet.Filter;
//import java.util.ArrayList;
//
///**
// * @ClassName: FilterConfiguration
// * @Description：
// * @Author: wanghr
// * Date: 1:41 PM 2020/6/9
// * Version: 1.0
// */
//@Configuration
//public class FilterConfiguration  {
//    @Autowired
//    private TestFilter3 testFilter3;
//
//    @Bean
//    public FilterRegistrationBean filter1() {
//        FilterRegistrationBean<Filter> filterRegistrationBean = new FilterRegistrationBean<>();
//        filterRegistrationBean.setFilter(testFilter3);
//        filterRegistrationBean.addUrlPatterns("/*");
//        filterRegistrationBean.setOrder(2);
//        return filterRegistrationBean;
//    }
//    @Bean
//    public FilterRegistrationBean filter2() {
//        FilterRegistrationBean<Filter> filterRegistrationBean = new FilterRegistrationBean<>();
//        filterRegistrationBean.setFilter(new TestFilter4());
//        filterRegistrationBean.addUrlPatterns("/test");
//        filterRegistrationBean.setOrder(1);
//        return filterRegistrationBean;
//    }
//}
